package Day17.interefaceTest;

/**
 * @author HYHwtx
 * @version 1.0
 * @date 2022/2/24 11:07
 */
public class Interface01 {
    public static void main(String[] args) {
//刨建手机跟相机的对象
//canera实现了UsbInterface.Phone实现了UsbInterfacecamera camera = new caneraO;

        Camera camera = new Camera();
        Phone phone = new Phone();
        Computer computar = new Computer();
        computar.work(phone);
        System.out.println("==============");
        computar.work(camera);

    }
}
